//
//  XYStudent.m
//  str
//
//  Created by qianfeng on 15/8/8.
//  Copyright (c) 2015年 qianfeng. All rights reserved.
//

#import "XYStudent.h"

@implementation XYStudent
- (id)initWithName:(NSString *)name andAge:(NSUInteger)age andScore:(int)score{
    self = [super init];
    if (self) {
        _name = name;
        _age = age;
        _score = score;
    }
    return self;
}
-(NSString *)getName{
    return  _name;
}

-(NSUInteger)getAge{
    return _age;
}

-(int)getScore{
    return _score;
}

-(NSString *)description{
    return [NSString stringWithFormat:@"%@ %lu %d",_name,_age,_score];
}



@end
